home *** CD-ROM | disk | FTP | other *** search
- '-------------Save as a plugin and it will write the SMS to txt file---------
-
- 'Credit where credit due. ie none to me (orac) as copied, changed and messed around for hours just to get it to work
-
- Class SmsTextLog
-
- Private m_Self
- Private m_WinampState
-
- 'Some info about the plugin
- Public Property Get SHOWABLE() 'Do I have a menu?
- SHOWABLE = False
- End Property
- Public Property Get TITLE() 'What's my name?
- TITLE = "On SMS Write Log"
- End Property
- Public Property Get DESCRIPTION() 'What's my purpose?
- DESCRIPTION = "This will Append the new SMS to File"
- End Property
- Public Property Get AUTHOR() 'Who created me?
- AUTHOR = "orac"
- End Property
- Public Property Get URL() 'Were can I be found? Where can you get more information?
- URL = "No where yet"
- End Property
-
- 'Who am I?
- Public Property Let Self(s)
- m_Self = s
-
- EventManager.RegisterEvent "NewSMS", s & ".WriteSMS", Me
- End Property
-
- Public Property Get Self()
- Self = m_Self
- End Property
-
- Sub WriteSMS(S, T)
- Debug.DebugMsg "Saving NewSMS to file " & "C:\SMSReceipt.txt"
- Dim File, text
- text = T & " , " & S & " , " & Now
- Set File = Fso.OpenTextFile("C:\SMSReceipt.txt", 8, True)
- File.WriteLine text
- File.Close
- End Sub
-
- End Class